package com.hyc.cloud.service;

import com.hyc.cloud.mapper.PaymentMapper;
import com.hyc.cloud.pojo.payment;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentMapper paymentMapper;
    @Override
    public int create(payment payment) {
        return paymentMapper.create(payment);
    }

    @Override
    public payment getPaymentByid(long id) {
        return paymentMapper.getPaymentByid(id);
    }
}
